e25073cbe9a4956c9a68af6638ca4821c07a6938,usage/rest-server/src/main/java/brooklyn/rest/transform/LocationTransformer.java,LocationTransformer,newInstance,#ManagementContext#String#LocationSpec#LocationDetailLevel#,35

Before Change


        if (level==LocationDetailLevel.FULL_EXCLUDING_SECRET || level==LocationDetailLevel.FULL_INCLUDING_SECRET) {
            LocationDefinition ld = new BasicLocationDefinition(id, locationSpec.getName(), locationSpec.getSpec(), locationSpec.getConfig());
            Location ll = mgmt.getLocationRegistry().resolve(ld);
            if (ll!=null) config = ll.getAllConfig(true).entrySet();
        }
        return new LocationSummary(
                id,

After Change


        if (level==LocationDetailLevel.FULL_EXCLUDING_SECRET || level==LocationDetailLevel.FULL_INCLUDING_SECRET) {
            LocationDefinition ld = new BasicLocationDefinition(id, locationSpec.getName(), locationSpec.getSpec(), locationSpec.getConfig());
            Location ll = mgmt.getLocationRegistry().resolve(ld);
            if (ll!=null) config = ll.getAllConfig(true);
        } else if (level==LocationDetailLevel.LOCAL_EXCLUDING_SECRET) {
            // get displayName
            if (!config.containsKey(LocationConfigKeys.DISPLAY_NAME.getName()) && mgmt!=null) {